package com.gxwy.admin.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gxwy.admin.dao.AdminDao;
import com.gxwy.admin.form.Admin;
@Service
public class AdminServiceImpl implements AdminServiceDao{
	@Autowired 
//    接口AdminDao  AdminDaoImpl继承的
	private AdminDao admindao;
	
	public boolean select(Admin admin) {
		// 判断返回的值是否有0，如果有0就返回false；
		System.out.println((admindao.select(admin)));
	
		if(admindao.select(admin)==0)
		{
			return false;
			
		}
         	return true;
	}



	public boolean selectId(String a) {
		// TODO Auto-generated method stub
		if(admindao.selectId(a)==0)
		{
			return false;
			
		}
		return true;
	}

}
